package week3;
import java.util.Arrays;
/**
 * Created by dell on 2017/3/9.
 */
public class EasyCopyArray {
    public static void main(String[] args) {
        int[] score1 = {1, 2, 3, 4, 5};
        int[] score2 = Arrays.copyOf(score1, score1.length);
        for (Integer score : score2) {
            System.out.printf("%3d", score);
        }
        System.out.println();
        score2[0] = 99;
        for (Integer score : score1) {
            System.out.printf("%3d", score);
        }
    }
}
